#!/usr/bin/python
# -*- coding: UTF-8 -*-

def func():
    for i in range(10):
        yield i

print(list(func()))


#
# def func():
#     yield from range(10)
#
# print(list(func()))